package com.block;

import cn.hutool.core.lang.UUID;
import cn.hutool.crypto.Mode;
import cn.hutool.crypto.Padding;
import cn.hutool.crypto.SecureUtil;
import cn.hutool.crypto.digest.DigestUtil;
import cn.hutool.crypto.symmetric.AES;
import com.alibaba.fastjson.JSONObject;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.scheduling.annotation.EnableAsync;



@MapperScan("com.block.db.mapper")
@EnableDiscoveryClient
@EnableAsync
@SpringBootApplication(scanBasePackages = {"com.block.*", "com.market.*"})
@EnableAspectJAutoProxy(proxyTargetClass = true, exposeProxy = true)
public class ProviderApplication {

    public static void main(String[] args) {
        SpringApplication.run(ProviderApplication.class, args);
    }


}
// class A {
//     public static void main(String[] args) {
//         String aesKey = "17F2126D65AB11EF97DC00163E3E32D1";
//         String userMobile = "13500000027";
//         String uuId = UUID.randomUUID().toString().replaceAll("-", "");
//         JSONObject zkObj = new JSONObject();
//         zkObj.put("baodan", "bd001");
//         zkObj.put("cityCode", "430100");
//         zkObj.put("city", "长沙市");
//         zkObj.put("provinceCode", "430000");
//         zkObj.put("province", "湖南省");
//
//         zkObj.put("purpose", "pu003");
//         zkObj.put("enterpriseOwner", "eo001");
//
//
//         zkObj.put("gjj", "gjj002");
//         zkObj.put("shebao", "sb002");
//         zkObj.put("sex", "1");
//         zkObj.put("mobileMd5", SecureUtil.md5(userMobile));
//         zkObj.put("salary", "sa003");
//         zkObj.put("yuqi", "yq001");
//         zkObj.put("outOrderNo", uuId);
//         zkObj.put("house", "hu001");
//         zkObj.put("loanAmount", "la001");
//         zkObj.put("realName", "保先生");
//         zkObj.put("loanTime", "lt002");
//
//         zkObj.put("xueli", "xl004");
//         zkObj.put("zhimaScore", "zm004");
//         zkObj.put("car", "car002");
//         zkObj.put("job", "job001");
//         zkObj.put("age", "30");
//         System.err.println(SecureUtil.aes(aesKey.getBytes()).encryptBase64(JSONObject.toJSONString(zkObj)));
//         System.err.println("---");
//         zkObj.put("orderNo", "1839506666807324672");
//         zkObj.put("mobile", userMobile);
//         zkObj.put("realName", "保先生");
//         System.err.println(SecureUtil.aes(aesKey.getBytes()).encryptBase64(JSONObject.toJSONString(zkObj)));
//     }
// }